<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title}</title>
   <link href="{$pathdepth}css/style.css" rel="stylesheet" type="text/css" />
   <link href="{$pathdepth}jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet" type="text/css" />
   <link href="{$pathdepth}jquery-ui-1.7.2/css/base/ui.accordion.css" rel="stylesheet" type="text/css" />
   <link href="{$pathdepth}jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet" type="text/css" />
   <link href="{$pathdepth}jquery-ui-1.7.2/css/base/ui.images.css" rel="stylesheet" type="text/css" />
   <link href="{$pathdepth}appleicon.png" rel="apple-touch-icon" />
   <script src="{$pathdepth}jquery-ui-1.7.2/js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script src="{$pathdepth}jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
	<script src="{$pathdepth}jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
	<script src="{$pathdepth}javascript/initToolbox.js" type="text/javascript"></script>
   <script src="{$pathdepth}javascript/shake.js" type="text/javascript"></script>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  
</head>
<body>
<a name="top"></a>
<div id="wrap">
		<div id="jQueryUIAccordion" class="ui-gray-icons ui-no-gradient-content ui-no-gradient-content-header ui-accordion-header">
    	<!-- Accordion -->
		<h2>Toolbox</h2>
		 <!-- 
		 
		    TEMPLATE: Only edit whats inside CAPS
      	 <h3><a href="#"> NAME OF CORD </a></h3>
          <div id="toolboxLinks"> ~ This is for alignment
		       <a href="URL HERE">NAME</a> ~ ONLY EDIT THIS
			 </div>
       -->
         {if $user_id eq ""}		
			<h3><a href="#">Guest Tools</a></h3>
			<div id="toolboxLinks">
			   <a href="{$pathdepth}login.php">Login</a>
			   <br/>
			   <a href="{$pathdepth}register.php">Register</a>
			</div>
         {else}
   			{if $role eq "user"}
   				<div>
   					<h3><a href="#">My Account</a></h3>
      				<div id="toolboxLinks">
						<a href="{$pathdepth}profile.php">Edit Profile</a>
						<br/>
						<a href="{$pathdepth}logout.php">Logout</a>
      				</div>
   				</div>
   				<div>
   					<h3><a href="#">Contribute</a></h3>
   					<div id="toolboxLinks">
						<a href="{$pathdepth}proposal.php">Propose Park</a>
      				</div>
   				</div>
   			{/if}
   			
   			{if $role eq "admin"}
			    <h3><a href="#">Manage</a></h3>
				<div id="toolboxLinks">
					 <br/>
			         <a href="{$pathdepth}admin/findusers.php">Users</a>
			         <br/>
			         <a href="{$pathdepth}admin/proposals.php">Proposals</a>
			         <br/>
					 <a href="{$pathdepth}admin/reports.php">Reports</a>
   				</div>
				
   			   <h3><a href="#">Parks</a></h3>
   			   <div id="toolboxLinks">
					<br/>
			        <a href="{$pathdepth}admin/addpark.php">Add</a>
					
					{if $park_id ne ""}
						<br/>
						<a href="{$pathdepth}admin/park.php?action=edit&id={$park_id}">Edit</a>
						<br/>
						<a href="{$pathdepth}admin/park.php?action=delete&id={$park_id}">Delete</a>
						<br/>				  
					{/if}
   			   </div>
   			{/if}
			
   		{/if}
		
		</div>
		
	<div id="header">
	   
		<div id="login">	  
			 <div id="loginInner">
				{if $user_id eq ""}	
					Welcome Guest
				{else}
					Welcome {$firstname}  /  <a href="{$pathdepth}logout.php">Logout</a>
				{/if}
			</div>
		</div>

		<a id="logo" href="{$pathdepth}index.php" title="Home"></a>

		<ul id="nav">
			<li class="h"><a href="{$pathdepth}index.php">Home</a></li>
			<li class="f"><a href="{$pathdepth}find.php">Find</a></li>
			<li class="a"><a href="{$pathdepth}about.php">About us</a></li>
			<li class="c"><a href="{$pathdepth}contact.php">Contact</a></li>
		</ul>

    </div><!-- /header -->

    <div id="content">

     <div id="contentBG"></div>
          <div id="valid">
			  <img src="{$pathdepth}images/xhtml.gif" alt="xhtml valid" /> 
			  <img src="{$pathdepth}images/css.gif" alt="css valid" />
		  </div>
         
     <div class="side fr">
		<div id="top">
			<h2>Last Viewed</h2>
			<ul class="previousFive">
				{if count($last) eq 0}
						No Previous Parks
				{else}					
					{section name=i loop=$last}	   
						<li><a href="{$pathdepth}parkdetails.php?id={$last[i].id}">{$last[i].name}</a></li>  
					{/section}
				{/if}
			</ul>
		</div>
		
		<div id="bm">
			<h2>Top 5 Parks</h2>
			<ul class="topFive">
				{if count($top5) eq 0}
					No Top Parks Yet
				{else}					
					{section name=i loop=$top5}	   
						<li><a href="{$pathdepth}parkdetails.php?id={$top5[i].id}">{$top5[i].name}</a></li>  
					{/section}
				{/if}
			</ul>
		</div>
    </div>
      
    <div class="main"> <!-- content START -->